package com.shop.cereshop.app.param.recommend;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "点赞或收藏设置已读参数")
public class LikeOrCollectReadParam {

    @ApiModelProperty(value = "动态id", required = false)
    Long recommendId;

    @ApiModelProperty(value = "类型：1-点赞 2-收藏 ", required = true)
    @Min(value = 1, message = "type不能小于1")
    @Max(value = 2, message = "type不能大于2")
    @NotNull(message = "type不能为空")
    Integer type;

}
